package com.lanou3g.ptp.achievement.mapper;

import com.lanou3g.ptp.entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LikeMapper {
    int insert(Like like);

    Long find(Long id);

    int deleteByDiaryIdAndStudentId(@Param("diaryId") Long diaryId, @Param("studentId") Long studentId);

    Like findByDiaryIdAndStudentId(@Param("diaryId") Long diaryId, @Param("studentId") Long studentId);
}
